package com.hamster.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hamster.crm.pojo.Scheme;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * 添加方案分栏的mapper
 * @author Tarry
 * @create 2019/12/20 15:44
 */
@Repository
@Mapper
public interface SchemeMapper extends BaseMapper<Scheme> {
    @Update("update scheme set del = 1 where id = #{id}")
    void deleteTag(String id);

    @Update("update scheme set state = #{state} where id = #{id}")
    void setSchemeState(@Param("id") String id,@Param("state") String state);
}
